package cn.edu.cdu.farmdeal.domain;

import java.util.List;

public class Shop extends Cart {
    private Integer id;

    private String userName;

    private String shopName;

    private String shopAddress;

    private String shopDescrip;

    private Integer cartId;

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }
    //    private String userId;

    private List<CartShopPro> cartShopPros;

    public List<CartShopPro> getCartShopPros() {
        return cartShopPros;
    }

    public void setCartShopPros(List<CartShopPro> cartShopPros) {
        this.cartShopPros = cartShopPros;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
    }

    public String getShopDescrip() {
        return shopDescrip;
    }

    public void setShopDescrip(String shopDescrip) {
        this.shopDescrip = shopDescrip;
    }

//    @Override
//    public String getUserId() {
//        return userId;
//    }
//
//    @Override
//    public void setUserId(String userId) {
//        this.userId = userId;
//    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userName=").append(userName);
        sb.append(", shopName=").append(shopName);
        sb.append(", shopAddress=").append(shopAddress);
        sb.append(", shopDescrip=").append(shopDescrip);
//        sb.append(", userId=").append(userId);
        sb.append("]");
        return sb.toString();
    }
}